package com.ruoyi.project.system.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.service.IDataInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dataInfo")
public class DataInfoController {


    @Autowired
    private IDataInfoService dataInfoService;


    @GetMapping("getPersonCount")
    private AjaxResult getDataInfo() {
        return AjaxResult.success(dataInfoService.getPersonCount());
    }


}
